
// 引入app组件当中封装的网络请求接口函数
const {
	global_request
} = getApp().globalData;


/**
 * 计划查询
 */
const GetList = (data) => {
	return global_request('swfwzxsbjhsjlb', data, '04e4ef2ffb87801964e557ee935b9f09bf32050808b37b4a5867fdebaae2a70612caf8a9f44e37152dcf99cf0dcbe4e1cd1663c24f9e26ca1d185a894bbde6be3a');
}

/**
 * 市级菜单
 */
const GetYhList = (data) => {
	return global_request('swfwzxhqfgdm', data, '045af829c17a1ad221bf386a2a207577a52a736e9963f2ef03d23fec68938210a0f44e413c21f6947bb75301ba6d01bbd0d7ae94ad7b756a9708c9c3bd812eae1f');
}

/**
 * 用水计划审批表
 */
const GetSpbYHList = (data) => {
	return global_request('swfwzxsnjqysjhsplb', data, '04e089d38546f5b795d24585838c3d408550063122745a7ab4643beda28f8aa10e9c386537b1ad2b8464792b9e06d6fecaa87d7fba00a35f34a5c305aab434c1a5');
}

/**
 * 批准调整用水计划通知书
 */
const GetJHTZList = (data) => {
	return global_request('swfwzxpztzysjhtzssjlb', data, '0473df83a2b6b11da915b324cb2760bc7b034434e756547d1b3c1bda57fe8b20912eee9d1d092e9fb3b9709effeda2087a12b371248cecbbbece5117fd664c99ee');
}

/**
 * 超定额(计划)用水通知书查询数据列表
 */
const GetCstzListSinge = (data) => {
	return global_request('swfwzxcdeystzssjlb', data, '04807070d446be217e1a34fb4f6380a686d23ef8aaacc2f1daad3f9641d8fd17a76e171476764c598ac90b241eb6ed19b89c7c708fdd38c0d9dab3ba20a6e2cfe9');
}

/**
 * 超定额(计划)用水通知书获取数据列表内的部分数据
 */
const GetSpbbzList = (data) => {
	return global_request('swfwzxhqspbz', data, '04bd20fcf70ef88fcdb0351bcf81278575d34606479fe45cef1a13c908018ffe91357b3970c78c0b1ce5474e583666efc0c189147ce4da6989e57445d21e55c2dd');
}

/**
 * 超定额(计划)用水核定通知书获取数据列表
 */
const GetCstzListSingehd = (data) => {
	return global_request('swfwzxcdeyshdtzs', data, '040fbbfe603a1bc4ae887f81c7d436d409517ac4d41cbfcf98c96a58e807868d9c093ce47e3556bd519be051427b848e45de6498d5c4933bb58bc413f38fe3f096');
}

/**
 * 超定额(计划)用水核定通知书获取数据列表
 */
const GetYhDingEhs = (data) => {
	return global_request('swfwzxysdehsbsjlb', data, '04de5fc2b7d2874b821ad322478940afafdf62fcd593bfbcde08d9a3bfd61aff8432681953ce131dc54f0fe54448c53108fd18df98dd51dfaba00b285345984897');
}


/**
 * 获取文件列表
 */
const GetFileList = (data) => {
	return global_request('/api/YHJiChuGuanLi/appGetFileList', data, 'POST');
}

// /**
//  * 下载附件 Copy
//  */
// const requestFile = (data) => {
// 	return global_downloadFile('/api/JieShuiZaiTi/DownloadFile', data);
// }

/**
 * 下载附件 Copy
 */
const DownloadFile = (data) => {
	return global_request('/api/JieShuiZaiTi/DownloadFile', data,'POST');
}

/**
 * 轮播图
 */
const GetListBannerImg = (data) => {
	return global_request('/api/YHJiChuGuanLi/appGetListBannerImg', data,'POST');
}

/**
 * 首页要闻、科普列表
 */
const GetListNews = (data) => {
	return global_request('/api/YHJiChuGuanLi/appGetListNews', data,'POST');
}

/**
 * 首页通知公告列表
 */
const GetListNotice = (data) => {
	return global_request('/api/YHJiChuGuanLi/appGetListNotice', data,'POST');
}

/**
 * 增加浏览量
 */
const appUpdateView = (data) => {
	return global_request('swfwzxzjlllcx', data,'04d5f84a8772959c26b709623734e46281b34512153e3fad31650a4fd7256a8198fa7dfdb97d3b9e6e6922087a89b55606e079f2ede7c4e48e37e52209aee830eb');
}

/**
 * 登录
 */
const appUserLogin = (data) => {
	return global_request('swfwzxdl', data,'04f9e9477c41f653fcc53037e75ee85e593388e34e90b3c95e5f6a327d6285a993f61ba5a52e22c89a50c3a733c9075e9a83a92b8453202c0560cefa7cefd02eee');
}


/**
 * 企业信息
 */
const dwxx = (data) => {
	return global_request('/api/dwxx/appGetList', data, 'POST');
}


/**
 * 企业信息编辑
 */
const dwxxEdit = (data) => {
	return global_request('/api/dwxx/appEdit', data, 'POST');
}

/**
 * 切换节水代码登录
 */
const appUserChange = (data) => {
	return global_request('/api/Login/appUserChange', data, 'POST');
}

// 暴露接口
module.exports = {
	GetList,
	GetYhList,
	GetSpbYHList,
	GetJHTZList,
	GetCstzListSinge,
	GetSpbbzList,
	GetCstzListSingehd,
	GetYhDingEhs,
	dwxx,
	dwxxEdit,
	GetFileList,
	DownloadFile,
	//requestFile,
	GetListBannerImg,
	GetListNews,
	GetListNotice,
	appUpdateView,
	appUserLogin,
	appUserChange
}
